package top.forgirl.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@ApiModel("公司模型POJO")
public class Company {

    @JsonIgnore
    private Integer id;
    @JsonIgnore
    private Integer deletedFlag;
    @JsonIgnore
    private LocalDateTime createTime;
    @JsonIgnore
    private LocalDateTime updateTime;

    @ApiModelProperty("公司名称")
    @NotBlank
    private String name;
    @ApiModelProperty("公司代号")
    @NotBlank
    private String cId;
    @ApiModelProperty("公司所在地")
    private String location;
    @ApiModelProperty("公司联系方式")
    private String contactNum;
    @ApiModelProperty("公司权限代码")
    @JsonIgnore
    private String relation;

}
